﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TRPOP.CMS.Model
{
    /// <summary>
    /// 系统常量
    /// </summary>
    public static class SystemConst
    {
        /// <summary>
        /// Config 文件夹相对路径
        /// </summary>
        public static string ConfigRootName;

        /// <summary>
        /// 首台首页
        /// </summary>
        public static string SystemAdminIndexPage;

        /// <summary>
        /// 系统菜单配置文件
        /// </summary>
        public static string SystemMenu_FileName;

        static SystemConst()
        {
            ConfigRootName = SystemInfoHelper.getSystemInfo().CMSRoot + SystemInfoHelper.getSystemInfo().AdminFolderName + SystemConst.SystemParam_Folder;
            
            SystemAdminIndexPage = SystemInfoHelper.getSystemInfo().CMSRoot + SystemInfoHelper.getSystemInfo().AdminFolderName+"/";

            SystemMenu_FileName = Common.Util.GetMapPath(ConfigRootName + "Sysmenu.xml");

        }

        /// <summary>
        /// 系统信息 config文件名
        /// </summary>
        public const string SystemInfoFileName = @"/SystemInfo.config";

        /// <summary>
        /// 系统参数文件夹名称
        /// </summary>
        public const string SystemParam_Folder = @"/config/";
        
        /// <summary>
        /// 手机功能参数设置
        /// </summary>
        public const string SystemParam_MobileFileName = @"Mobile.xml";

        /// <summary>
        /// 附件参数设置
        /// </summary>
        public const string SystemParam_AttachmentFileName = @"Attachment.xml";

        /// <summary>
        /// 模板变量文件
        /// </summary>
        public const string SystemVar_TemplateVarFileName = @"TemplateVar.xml";

        /// <summary>
        /// 系统变量文件
        /// </summary>
        public const string SystemVar_SystemVarFileName = @"SystemVar.xml";

        /// <summary>
        /// ContentEditor XML文件名
        /// </summary>
        public const string SystemVar_ContentEditorFileName = @"ContentEditor.xml";
        
        /// <summary>
        /// ContentPager XML文件名
        /// </summary>
        public const string SystemVar_ContentPagerFileName = @"ContentPager.xml";
    }
}
